package com.databaseManager;

public class Prescription {
    private String prescribeId;
    private String Eid;
    private String Pid;
    private PresFeature[] features;
    private int Price;

    public Prescription(String prescribeId, String Eid, String Pid, String[] MedId, String[] MedName, int[] MedConsum) {
        this.prescribeId = prescribeId;
        this.Eid = Eid;
        this.Pid = Pid;
        features = new PresFeature[MedId.length];
        Price = 0;

        for(int i = 0; i < MedId.length; i++) {
            features[i] = new PresFeature(MedId[i], MedName[i], MedConsum[i]);
        }
    }

    public String getPrescribeId() {
        return prescribeId;
    }

    public void setPrescribeId(String prescribeId) {
        this.prescribeId = prescribeId;
    }

    public String getEid() {
        return Eid;
    }

    public void setEid(String Eid) {
        this.Eid = Eid;
    }

    public String getPid() {
        return Pid;
    }

    public void setPid(String Pid) {
        this.Pid = Pid;
    }

    public PresFeature[] getFeatures() {
        return features;
    }

    //public void setFeatures(String ) {
    //	return features;
    //}

    public int getPrice() {
        return Price;
    }

    public void setPrice(int price) {
        Price = price;
    }
}
